package com.bjdd.jdy.ui.inspection;

import com.bjdd.jdy.base.BaseModel;
import com.bjdd.jdy.base.BasePresenter;
import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.base.BaseView;

import java.util.List;
import java.util.Map;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import rx.Observable;

/**
 * Created by Administrator on 2017/5/2.
 */

public interface InspectionContract {
    interface Model extends BaseModel{
        Observable<BaseResult<String>> upLoadImg(String token, String carrierId, String orderNo, Map<String,RequestBody> file);
    }
    interface View extends BaseView{
        void upLoadBack();
        void delImg(int position);
    }
    abstract class Presenter extends BasePresenter<Model,View>{
        abstract void upLoadImg(String orderNo,Map<String,RequestBody> file);
        abstract void startCompress(String orderNo,List<String> data);
        abstract void CompressImg(String path);
    }
}
